package com.and9.mchen.mcmusic.service.factory;

import com.and9.mchen.mcmusic.service.IMusicManagerService;
import com.and9.mchen.mcmusic.util.EntityHelper;

public class MusicManagerServiceFactory {
	
	private IMusicManagerService musicManagerService = null;
	private static MusicManagerServiceFactory instance = new MusicManagerServiceFactory();
	
	private  MusicManagerServiceFactory(){
		musicManagerService=(IMusicManagerService) EntityHelper.
				createServiceByProperty("IMusicManagerServiceClass");
	}
	public static MusicManagerServiceFactory getInstance(){
		return instance;
	}
	public IMusicManagerService getMusicManagerService(){
		return musicManagerService;
	}
}
